/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package fvs.edu.br;

import java.util.Scanner;

/**
 *
 * @author Pedro Saraiva
 */
public class Teste {
    
    public static void main(String[] args) {
        System.out.println("Informe a quantidade de Alunos: ");
        int qtdAlunos =
                new Scanner(System.).nextInt();
        int c=0;
        double somaNotas=0;
        while(c<qtdAlunos){
            System.out.println("Informe a nota do"+(c+1)+"° Aluno");
            double nota =
                    new Scanner(System.in).nextDouble();
            somaNotas += nota;
            c+=1;
        }
        double media2 = somaNotas/qtdAlunos;
        System.out.println("Média: "+media2);
    }
    
}
